//跨域代理前缀
//const API_PROXY_PREFIX = '/api'
//const BASE_URL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_API_BASE_URL : API_PROXY_PREFIX
//const BASE_URL = process.env.VUE_APP_API_BASE_URL
module.exports = {
    //登陆相关
    LOGIN: {
        //用户登录
        USER: '/api/login/token',
        //用户路由
        ROUTES: '/api/login/routes',
    },
    DOCUMENT: {
        UPLOAD: '/api/document/upload',
        UPLOADS: '/api/document/uploads',
    },
    //字典相关
    DICT: {
        //单个字典
        DICT_SINGLE: '/api/dict/single',
        //多个字典
        DICT_MANY: '/api/dict/many',
        //字典分页
        DICT_PAGE: '/api/dict/page',
        //字典删除
        DICT_DELETE: '/api/dict/delete',
        //字典新增/修改
        DICT_ADD_OR_UPDATE: '/api/dict/save',
    },
    //用户相关
    USER: {
        //用户列表分页
        USER_PAGE: '/api/user/page',
        //用户列表
        USER_LIST: '/api/user/list',
        //用户删除
        USER_DELETE: '/api/user/delete',
        //用户新增/修改
        USER_ADD_OR_UPDATE: '/api/user/save',
        //导出列表
        USER_EXPORT: '/api/user/export',
    },
    //角色相关
    ROLE: {
        //数据列表分页
        ROLE_PAGE: '/api/role/page',
        //数据列表
        ROLE_LIST: '/api/role/list',
        //数据删除
        ROLE_DELETE: '/api/role/delete',
        //保存数据
        ROLE_ADD_OR_UPDATE: '/api/role/save',
        //授权
        ROLE_AUTHORIZED: '/api/role/authorized',
        //已授权
        ROLE_AUTHS: '/api/role/auths',
    },
    //菜单相关
    MENU: {
        //数据列表分页
        MENU_PAGE: '/api/menu/page',
        //数据列表
        MENU_LIST: '/api/menu/list',
        //树授权
        MENU_TREE: '/api/menu/tree',
        //节点
        MENU_NODES: '/api/menu/nodes',
        //查找下属按钮节点
        MENU_UNDERLINGS: '/api/menu/underlings',
        //删除
        MENU_DELETE: '/api/menu/delete',
        //保存数据
        MENU_ADD_OR_UPDATE: '/api/menu/save',
    },
    //消息通知相关
    NOTICE: {
        NOTICE_PAGE: '/api/notice/page',
        NOTICE_ADD_OR_UPDATE: '/api/notice/save',
        NOTICE_READ: '/api/notice/read',
    },
    //系统日志
    OPERATION_LOG: {
        OPERATION_LOG_PAGE: '/api/operation/log/page',
    },
    //定时任务相关
    QUARTZ: {
        QUARTZ_PAGE: '/api/quartz/page',
        QUARTZ_ADD_OR_UPDATE: '/api/quartz/save',
        QUARTZ_DELETE: '/api/quartz/delete',
        QUARTZ_EXECUTE: '/api/quartz/execute',
        QUARTZ_PAUSE: '/api/quartz/pause',
        QUARTZ_RESUME: '/api/quartz/resume',
    },
    //系统设置相关
    CONFIG: {
        CONFIG_PAGE: '/api/config/page',
        CONFIG_ADD_OR_UPDATE: '/api/config/save',
        CONFIG_DELETE: '/api/config/delete',
    },
    APP: {
        APP_PAGE: '/api/app/page',
        APP_ADD_OR_UPDATE: '/api/app/save',
        APP_DELETE: '/api/app/delete',
    },
    SWIPER: {
        SWIPER_PAGE: '/api/swiper/page',
        SWIPER_ADD_OR_UPDATE: '/api/swiper/save',
        SWIPER_DELETE: '/api/swiper/delete',
    }
}
